package com.qax.scheduler.spring.boot.autoconfigure;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.netty.NettyServerCustomizer;
import org.springframework.context.annotation.Bean;
import reactor.netty.http.HttpProtocol;

@SpringBootApplication
public class HeadquartersApplication {

    public static void main(String[] args) {
        SpringApplication.run(HeadquartersApplication.class, args);
    }

    @Bean
    public NettyServerCustomizer serverCustomizer() {
        return (server) -> server.protocol(HttpProtocol.H2C,HttpProtocol.HTTP11);
    }
}
